package com.haha.common.constant;

public class ProductConstant {
    public enum AttrEnum{
        ATTR_TYPE_BASE(1,"BaseAttrType"),ATTR_TYPE_SALE(0,"SaleAttrType");
        //todo 枚举类型的使用你又忘了！！记录一下
        private int code;
        private String mesg;
         AttrEnum(int code,String mesg){
            this.code = code;
            this.mesg = mesg;
        }
        public int getCode() {
            return code;
        }
        public String getMesg() {
            return mesg;
        }
    }

    public enum StatusEnum {
        NEW_SPU(0, "新建"), UP_SPU(1, "上架"),DOWN_SPU(2,"下架");
        //todo 枚举类型的使用你又忘了！！记录一下
        private int code;
        private String mesg;

        StatusEnum(int code, String mesg) {
            this.code = code;
            this.mesg = mesg;
        }
        public int getCode() {
            return code;
        }
        public String getMesg() {
            return mesg;
        }
    }

}
